<template>
  <div>
 
    
  </div>
</template>

<script>
export default {
  props: ["tableData","total","currentPage"],
  data() {
    return {
 
   
     
    };
  },
  mounted() {
    console.log(this.tableData,this.name);
  },

  methods: {    
      tj(data){
          console.log(data);
        this.$confirm("是否推荐到app首页", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning",
      })
        .then(() => {
          this.$message({
            type: "success",
            message: "推荐成功!",
          });
          data.done=false
        })
        .catch(() => {
          this.$message({
            type: "info",
            message: "已取消推荐",
          });
        });

      },
      qxtj(data){
          this.$confirm("是否取消", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning",
      })
        .then(() => {
          this.$message({
            type: "success",
            message: "取消推荐成功!",
          });
                data.done=true
        })
        .catch(() => {
          this.$message({
            type: "info",
            message: "已取消当前操作",
          });
        });
    
      },
    handleSizeChange(val) {
           this.$emit('current-change',val);
      console.log(`每页 ${val} 条`);
    },
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`);
    },
    handleClickWC(){
        this.$router.push("/home/RadioDetails")
    },
    handleClick(data) {
      console.log("删除",data);
      this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning",
      })
        .then(() => {
          this.$message({
            type: "success",
            message: "删除成功!",
          });
        })
        .catch(() => {
          this.$message({
            type: "info",
            message: "已取消删除",
          });
        });
    },
  },
};
</script>

<style lang="scss" scoped>


.el-table .cell {
  width: 200px;
  overflow: hidden;
  white-space: nowrap;

  text-overflow: ellipsis;

  -o-text-overflow: ellipsis;
}
</style>